﻿using SaiLing.Domain.Specification;
using SaiLing.Paging;
using SaiLing.Repository;
using SaiLing.SingleSignOn.Domain.Entities.DataTransferObject;
using SaiLing.SingleSignOn.Domain.Entities.System;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace SaiLing.SingleSignOn.Domain.Interfaces.System
{
    public interface IPositionRepository : IRepository<Position>
    {
        Task<PageData<PositionDTO>> PageDataList<TS>(int pageIndex, int pageSize, ISpecification<Position> specification, Expression<Func<PositionDTO, TS>> orderByExpression, bool isDesc);
    }
}
